<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/order/V_sales.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/order/V_sales.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: "id",
        footer: "Foots",
        cnName: "销售报表",
        name: "V_sales",
        url: "/VSales/",
        sortName: "title",
        paginationSize: 99999999,
        paginationHide: true,
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { title: "", date: "" },
      searchFormOptions: [
        [
          { title: "商品名称", field: "title", type: "like" },
          { title: "创建时间", field: "date", type: "date" },
        ],
      ],
      columns: [
        {
          field: "title",
          title: "商品名称",
          type: "string",
          sort: true,
          width: 220,
          align: "left",
          sortable: true,
        },
        {
          field: "num",
          title: "销售量",
          type: "decimal",
          sort: true,
          width: 120,
          align: "left",
        },
        {
          field: "total",
          title: "销售额",
          type: "decimal",
          sort: true,
          width: 120,
          align: "left",
        },
        {
          field: "date",
          title: "创建时间",
          type: "datetime",
          sort: true,
          width: 120,
          hidden: true,
          align: "left",
          sortable: true,
        },
        {
          field: "id",
          title: "主键",
          type: "string",
          width: 120,
          hidden: true,
          require: true,
          align: "left",
        },
      ],
      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: "",
      },
    };
  },
};
export default vueParam;
</script>
